package com.community.manage.service.impl;

import com.community.common.entity.vo.UserLoginVo;
import com.community.common.result.Result;
import com.community.manage.mapper.UserMapper;
import com.community.manage.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserMapper userMapper;

    /**
     * 查找用户
     * @param phone
     * @return
     */
    @Override
    public Result findUserByPhone(String phone) {
        UserLoginVo userLoginVo = userMapper.findUserByPhone(phone);
        return Result.success(userLoginVo);
    }
}
